/*
# ------------------------------------------------------------------------
# JD Base Theme
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/
/*//update image size
function updateOrientation() {
	var maxwidth = 200;
	var orient = window.orientation
    if (orient == 90 || orient == -90) {
		bdcls = 'landscape';
		maxwidth = Math.round(480*40/100); //IPhone
	} else {
		bdcls = 'portrait';
		maxwidth = Math.round(screen.width*40/100);
	}
	document.body.className = bdcls;
	//update images width
	images = document.getElementsByTagName ('img');
	for(i=0;i<images.length;i++) {
		image = images[i];
		if (!image._orgwidth) {
			image._orgwidth = image.offsetWidth;
		}
		if (image._orgwidth > maxwidth) {
			image.width = maxwidth;
		} else if (image._orgwidth > image.offsetWidth) {
			image.width = image._orgwidth;
		}
	}
	window.scrollTo(0,1);
}
$(document).ready(function (){
	updateOrientation();
});*/